#!/bin/bash
# for loop test node status

myping(){
	ping -c2 -i0.3 -W1 $1 &>/dev/null
	
	if [ $? -eq 0 ];then
		echo "$1 is up"
	else
		echo "$1 is down"
	fi
}

for i in {1..254}
do
	myping 192.168.1.$i &
done

wait
